package com.heima.user.controller.v1;


import com.heima.model.user.dtos.LoginDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.user.service.ApUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 用户登陆
 *
 * @author makejava
 * @since 2022-06-11 15:04:43
 */
@RestController
@RequestMapping("/api/v1/login")
@Api("登陆")
public class LoginController {
    /**
     * 服务对象
     */
    @Autowired
    private ApUserService apUserService;
    @ApiOperation("登陆接口")
    @PostMapping("login_auth")
    public ResponseResult login(@RequestBody LoginDto loginDto) {
        return apUserService.login(loginDto);
    }

}

